<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>nih: Matrices</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nih
   &#160;<span id="projectnumber">0.5</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('group__matrices.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Matrices</div>  </div>
<div class="ingroups"><a class="el" href="group__linalg.html">Linear Algebra</a></div></div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_matrix.html">nih::Matrix&lt; T, N, M &gt;</a></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga068289888360ffe2e4c54644a89c3bde"></a><!-- doxytag: member="matrices::Matrix3x3f" ref="ga068289888360ffe2e4c54644a89c3bde" args="" -->
typedef Matrix&lt; float, 3, 3 &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>nih::Matrix3x3f</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa34814c8fbeebc00b3aacbbb9a802a0f"></a><!-- doxytag: member="matrices::Matrix3x3d" ref="gaa34814c8fbeebc00b3aacbbb9a802a0f" args="" -->
typedef Matrix&lt; double, 3, 3 &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>nih::Matrix3x3d</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab91e326c8a8aefd74552fcf7453d9edf"></a><!-- doxytag: member="matrices::Matrix4x4f" ref="gab91e326c8a8aefd74552fcf7453d9edf" args="" -->
typedef Matrix&lt; float, 4, 4 &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>nih::Matrix4x4f</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae98749c4d28911f80b68e56efb46b7c8"></a><!-- doxytag: member="matrices::Matrix4x4d" ref="gae98749c4d28911f80b68e56efb46b7c8" args="" -->
typedef Matrix&lt; double, 4, 4 &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>nih::Matrix4x4d</b></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga9d891cd64a82aefc62f28dca0061a99f"></a><!-- doxytag: member="matrices::multiply" ref="ga9d891cd64a82aefc62f28dca0061a99f" args="(const Matrix&lt; T, N, M &gt; &amp;, const Matrix&lt; T, M, Q &gt; &amp;, Matrix&lt; T, N, Q &gt; &amp;)" -->
template&lt;typename T , int N, int M, int Q&gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_API_CS Matrix&lt; T, N, Q &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>nih::multiply</b> (const Matrix&lt; T, N, M &gt; &amp;, const Matrix&lt; T, M, Q &gt; &amp;, Matrix&lt; T, N, Q &gt; &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="gae27c9ec1c67d6ccc566ccef54d6134ec"></a><!-- doxytag: member="matrices::operator*" ref="gae27c9ec1c67d6ccc566ccef54d6134ec" args="(const Matrix&lt; T, N, M &gt; &amp;, const Matrix&lt; T, M, Q &gt; &amp;)" -->
template&lt;typename T , int N, int M, int Q&gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_API_CS Matrix&lt; T, N, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>nih::operator*</b> (const Matrix&lt; T, N, M &gt; &amp;, const Matrix&lt; T, M, Q &gt; &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga3b402229a02f14d9742452c586f5215d"></a><!-- doxytag: member="matrices::multiply" ref="ga3b402229a02f14d9742452c586f5215d" args="(const Vector&lt; T, N &gt; &amp;, const Matrix&lt; T, N, M &gt; &amp;, Vector&lt; T, M &gt; &amp;)" -->
template&lt;typename T , int N, int M&gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_API_CS Vector&lt; T, M &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>nih::multiply</b> (const Vector&lt; T, N &gt; &amp;, const Matrix&lt; T, N, M &gt; &amp;, Vector&lt; T, M &gt; &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga0f199ec8806602a51e72f64b9ee2860c"></a><!-- doxytag: member="matrices::multiply" ref="ga0f199ec8806602a51e72f64b9ee2860c" args="(const Matrix&lt; T, N, M &gt; &amp;, const Vector&lt; T, M &gt; &amp;, Vector&lt; T, N &gt; &amp;)" -->
template&lt;typename T , int N, int M&gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_API_CS Vector&lt; T, N &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>nih::multiply</b> (const Matrix&lt; T, N, M &gt; &amp;, const Vector&lt; T, M &gt; &amp;, Vector&lt; T, N &gt; &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga3585b1336ed34f070bbffd8904057a72"></a><!-- doxytag: member="matrices::transpose" ref="ga3585b1336ed34f070bbffd8904057a72" args="(const Matrix&lt; T, N, M &gt; &amp;)" -->
template&lt;typename T , int N, int M&gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_API_CS Matrix&lt; T, M, N &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>nih::transpose</b> (const Matrix&lt; T, N, M &gt; &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga317a79a13fca76856e3c4500ec8eeffa"></a><!-- doxytag: member="matrices::transpose" ref="ga317a79a13fca76856e3c4500ec8eeffa" args="(const Matrix&lt; T, N, M &gt; &amp;, Matrix&lt; T, M, N &gt; &amp;)" -->
template&lt;typename T , int N, int M&gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_API_CS Matrix&lt; T, M, N &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>nih::transpose</b> (const Matrix&lt; T, N, M &gt; &amp;, Matrix&lt; T, M, N &gt; &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga0f2181373ff7ef8ed392ccf8f92b8b97"></a><!-- doxytag: member="matrices::invert" ref="ga0f2181373ff7ef8ed392ccf8f92b8b97" args="(const Matrix&lt; T, N, M &gt; &amp;, Matrix&lt; T, M, N &gt; &amp;)" -->
template&lt;typename T , int N, int M&gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_API_CS bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>nih::invert</b> (const Matrix&lt; T, N, M &gt; &amp;, Matrix&lt; T, M, N &gt; &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga23f8ea3658a91f52bf853a4865f7df80"></a><!-- doxytag: member="matrices::det" ref="ga23f8ea3658a91f52bf853a4865f7df80" args="(const Matrix&lt; T, N, M &gt; &amp;)" -->
template&lt;typename T , int N, int M&gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_API_CS T&#160;</td><td class="memTemplItemRight" valign="bottom"><b>nih::det</b> (const Matrix&lt; T, N, M &gt; &amp;)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga5d92f3307949b63085b54c2c4d14cb78"></a><!-- doxytag: member="matrices::translate" ref="ga5d92f3307949b63085b54c2c4d14cb78" args="(const Vector&lt; T, 3 &gt; &amp;vec)" -->
template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Matrix&lt; T, 4, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__matrices.html#ga5d92f3307949b63085b54c2c4d14cb78">nih::translate</a> (const Vector&lt; T, 3 &gt; &amp;vec)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">build a 3d translation matrix <br/></td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="gad1ee54c47ad750f6485c00f707dd978c"></a><!-- doxytag: member="matrices::perspective" ref="gad1ee54c47ad750f6485c00f707dd978c" args="(T fovy, T aspect, T zNear, T zFar)" -->
template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">Matrix&lt; T, 4, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__matrices.html#gad1ee54c47ad750f6485c00f707dd978c">nih::perspective</a> (T fovy, T aspect, T zNear, T zFar)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">build a 3d perspective matrix <br/></td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga9df91e2ecf368ee7e7b9dddce3a7f3d1"></a><!-- doxytag: member="matrices::look_at" ref="ga9df91e2ecf368ee7e7b9dddce3a7f3d1" args="(const Vector&lt; T, 3 &gt; &amp;eye, const Vector&lt; T, 3 &gt; &amp;center, const Vector&lt; T, 3 &gt; &amp;up)" -->
template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">Matrix&lt; T, 4, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__matrices.html#ga9df91e2ecf368ee7e7b9dddce3a7f3d1">nih::look_at</a> (const Vector&lt; T, 3 &gt; &amp;eye, const Vector&lt; T, 3 &gt; &amp;center, const Vector&lt; T, 3 &gt; &amp;up)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">build a 3d look at matrix <br/></td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="gaf42e47e61afca06aff0efdbb26cfc1ef"></a><!-- doxytag: member="matrices::rotation_around_X" ref="gaf42e47e61afca06aff0efdbb26cfc1ef" args="(const T q)" -->
template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Matrix&lt; T, 4, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__matrices.html#gaf42e47e61afca06aff0efdbb26cfc1ef">nih::rotation_around_X</a> (const T q)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">build a 3d rotation around the X axis <br/></td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="ga21af57144d9398e235230c2096f64655"></a><!-- doxytag: member="matrices::rotation_around_Y" ref="ga21af57144d9398e235230c2096f64655" args="(const T q)" -->
template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Matrix&lt; T, 4, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__matrices.html#ga21af57144d9398e235230c2096f64655">nih::rotation_around_Y</a> (const T q)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">build a 3d rotation around the Y axis <br/></td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="gaa52af0191054c50d9ebd145331c61a78"></a><!-- doxytag: member="matrices::rotation_around_Z" ref="gaa52af0191054c50d9ebd145331c61a78" args="(const T q)" -->
template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Matrix&lt; T, 4, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__matrices.html#gaa52af0191054c50d9ebd145331c61a78">nih::rotation_around_Z</a> (const T q)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">build a 3d rotation around the Z axis <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga33d8b434a7554e170c48d85be8a45efd"></a><!-- doxytag: member="matrices::ptrans" ref="ga33d8b434a7554e170c48d85be8a45efd" args="(const Matrix4x4f &amp;m, const Vector3f &amp;v)" -->
NIH_HOST NIH_DEVICE Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__matrices.html#ga33d8b434a7554e170c48d85be8a45efd">nih::ptrans</a> (const Matrix4x4f &amp;m, const Vector3f &amp;v)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">transform a 3d point with a perspective transform <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga90f6d2850e286d194db09300a4d99537"></a><!-- doxytag: member="matrices::vtrans" ref="ga90f6d2850e286d194db09300a4d99537" args="(const Matrix4x4f &amp;m, const Vector3f &amp;v)" -->
NIH_HOST NIH_DEVICE Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__matrices.html#ga90f6d2850e286d194db09300a4d99537">nih::vtrans</a> (const Matrix4x4f &amp;m, const Vector3f &amp;v)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">transform a 3d vector with a perspective transform <br/></td></tr>
</table>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Thu Dec 15 2011 11:56:21 for nih by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
